package com.hyb.service.impl;


import com.hyb.mapper.SmallitemsMapper;
import com.hyb.pojo.Smallitems;
import com.hyb.service.SmallitemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SmallitemsServiceImpl implements SmallitemsService {
    @Autowired
    SmallitemsMapper smallitemsMapper;
    @Override
    public List<Smallitems> getAll() {
        return smallitemsMapper.selectAll();
    }

    @Override
    public List<Smallitems> getByBisId(int bis_id) {
        return smallitemsMapper.selectByBisId(bis_id);
    }

    @Override
    public List<Smallitems> getByBisIdExcludeById(Map map) {
        return smallitemsMapper.getByBisIdExcludeById( map);
    }

    @Override
    public Smallitems getById(int si_id) {
        return smallitemsMapper.selectById(si_id);
    }

    @Override
    public void deleteById(int si_id) {
        smallitemsMapper.deleteById(si_id);
    }

    @Override
    public void addAll(Map map) {
         smallitemsMapper.addAll(map);
    }

    @Override
    public void updateById(Map map) {
        smallitemsMapper.updateById(map);
    }
}
